<template>
  <div class="gh-tabItem1">
    <img :src="config.icon" />
    <div class="gh-tabItem1-label">
      {{ config.label }}
    </div>
    <div class="gh-tabItem1-val">
      <div class="gh-tabItem1-val-num">
        {{ config.value }}
      </div>
      {{ config.unit }}
    </div>
  </div>
</template>
<script>
export default {
  props: {
    config: {
      type: Object
    }
  }
}
</script>
<style lang="scss">
.gh-tabItem1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  img {
    width: 70px;
    height: 70px;
  }
  &-label {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 12px;
    font-weight: 500;
    color: #4c565c;
    margin-bottom: 3px;
  }
  &-val {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 12px;
    line-height: 12px;
    font-weight: 500;
    color: #4c565c;
    margin-bottom: 3px;
    &-num {
      font-size: 14px;
      line-height: 14px;
      font-family: DIN;
      font-weight: bold;
      color: #000000;
      margin: 0 5px 0px 0;
    }
  }
}
</style>
